import request from '@/utils/request'

const api_name = '/ware/waresku'

export default {
    getDataList(params) {
        return request({
          url: `${api_name}/page`,
          method: 'get',
          params: params
        })
    },
    getWareSku(id) {
        return request({
          url:`${api_name}/info/${id}`,
          method: 'get',
        })
    },
    createWareSku(data) {
        return request({
          url: `${api_name}/create`,
          method: 'post',
          data: data
        })
    },
    updateWareSku(data) {
        return request({
          url: `${api_name}/update`,
          method: 'post',
          data: data
        })
    },
    deleteWareSku(data) {
        return request({
          url: `${api_name}/delete`,
          method: 'post',
          data: data
        })
    }
}